package com.aaa.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.data.annotation.Transient;

@Data
@TableName(value = "tb_act_product")
public class TbActProduct implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 活动id
     */
    @TableField(value = "tid")
    private String tid;

    /**
     * 商品id
     */
    @TableField(value = "pid")
    private String pid;

    /**
     * 商品数量
     */
    @TableField(value = "store")
    private Integer store;

    /**
     * 秒杀商品数量
     */
    @TableField(value = "new_store")
    private Integer newStore;

    /**
     * 商品原价
     */
    @TableField(value = "old_price")
    private Double oldPrice;

    /**
     * 活动价
     */
    @TableField(value = "new_price")
    private Double newPrice;

    /**
     * 限购
     */
    private Integer num;
    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private String startTime;

    /**
     * 结束时间
     */
    @TableField(value = "finish_time")
    private String finishTime;

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "create_date")
    private Date createDate;

    @TableField(value = "update_by")
    private String updateBy;

    @TableField(value = "update_date")
    private Date updateDate;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "version")
    private Integer version;

    @TableField(value = "state")
    private Integer state;


    @TableField(exist = false)
    private TbPrdInfo tbPrdInfo;

}